InteractionObjective.Id Property

Gets or sets the unique identifier of this interaction.

Parent Type: InteractionObjective

Namespace: Microsoft.LearningComponents.DataModel

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public string Id

{ get; set; }
Exceptions
Exception type Condition
InvalidOperationException

Thrown if this LearningDataModel object cannot be written to.

ArgumentException

In SCORM 2004 packages, thrown if the value passed is empty, or if the string is not a valid URI. In SCORM 1.2 packages, this is thrown if the value passed is empty or if any of the characters in the string are not alphanumeric or - or _.

ArgumentOutOfRangeException

Thrown if the string passed is longer than BaseSchemaInternal.AttemptObjectiveItem.MaxKeyLength characters in SCORM 2004 packages, or longer than 255 in SCORM 1.2 packages.

Remarks

In SCORM 2004, this corresponds to cmi.interactions.n.objectives.n.id.

In SCORM 1.2, this corresponds to cmi.interactions.n.objectives.n.id.

This property represents a unique identifier for an objective. This identifier may or may not correspond to an objective defined within the LearningDataModel.Objectives collection.